package com.bz.portal.feign;

import com.bz.portal.feign.fallback.CommonContentFeignClientFallbackFactory;
import com.bz.vo.ContentVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 命令规范: 服务名称 + FeignClient
 */
@FeignClient(value = "common-content",fallbackFactory = CommonContentFeignClientFallbackFactory.class)
public interface CommonContentFeignClient {

    //--------------------------- /service/content --------------------------
    /**
     * 查询首页大广告位
     * @return
     */
    @GetMapping("/service/content/selectFrontendContentByAD")
    List<ContentVo> selectFrontendContentByAD();
}